package kr.hkit.androidcomplete02.ch01;

import java.util.ArrayList;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class ListViewTest extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.list_view_test);
		
		ArrayList<String> arGeneral = new ArrayList<>();
		arGeneral.add("������");
		arGeneral.add("�̼��");
		arGeneral.add("������");
		arGeneral.add("��������");
		
		ArrayAdapter<String> adapter;
		adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,arGeneral);
		
		ListView list = (ListView) findViewById(R.id.ch12_list);
		list.setAdapter(adapter);
		
		
	}
	
	
}
